CFLAGS=-g

SOURCES=huffdec.c huffenc.c lzwcomp.c lzwunc.c mslzunc.c rle1.c unrle1.c

PROGRAMS=$(SOURCES:.c=)

all: ${PROGRAMS}

huffdec: huffdec.c 
	${CC} ${CFLAGS} -o $@ $<
huffenc: huffenc.c 
	${CC} ${CFLAGS} -o $@ $<
lzwcomp: lzwcomp.c 
	${CC} ${CFLAGS} -o $@ $<
lzwunc: lzwunc.c 
	${CC} ${CFLAGS} -o $@ $<
mslzunc: mslzunc.c 
	${CC} ${CFLAGS} -o $@ $<
rle1: rle1.c 
	${CC} ${CFLAGS} -o $@ $<
unrle1: unrle1.c 
	${CC} ${CFLAGS} -o $@ $<
    
clean:
	rm -rf ${PROGRAMS}
